/**
 * Created by DevilsEyes on 2016/6/10.
 */
'use strict';
let {P, focus} = require('./Point');

class Line {
    constructor(pA, pB) {
        this.a = pA;
        this.b = pB;
    }

    get r() {
        return P(
            (this.a.x + this.b.x) / 2,
            (this.a.y + this.b.y) / 2,
            (this.a.z + this.b.z) / 2
        ).r;
    }
}

module.exports = {
    Line
};